home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Precision Software Appli…tions Silver Collection 1
/
Precision Software Applications Silver Collection Volume One (PSM) (1993).iso
/
windows
/
games
/
winpcx2.arj
/
WINPCX.DOC
< prev
next >
Wrap
Text File
|
1989-10-20
|
3KB
|
57 lines
WinPcx
William L. Moussiaux
Farradyne Sys. Inc.
3206 Tower Oaks Blvd.
Rockville Md, 20852
(301) 468-5568 - Voice
Compuserve Contact #71641,117
WinPcx is a MS Windows program that reads .PCX paint files and displays
them on the screen. I wrote this program to read a .PCX file into another
program that I'm currently writting. I optained the original code for reading
a .PCX file from a fellow associate, Jim Karl. His version was written to only
read one specific .PCX file and did not work at all with different Paint
Versions or .PCX files.
Since there doesn't seem to be help available on how to read .PCX Files under
Windows, I'm posting this program for all to use, alter and incorapate into
there own programs. Of course, it can still be used to just veiw .PCX files
under Windows.
Since I didn't spend months writing and perfecting the code, there are some
bugs and limitations. Windows can only use 8 colors without merging the colors
together, so if some colors look strange, that's why. When reading a .PCX that
has the Palettle turned off, the picture will be cyan instead of black. I
couldn't figure out how to convert it to black.
VGA .PCX files seem to be a big problem. They will either work, over lap
itself, lock the computer or start the printer going. Why it does this, I'm
not to sure. I believe it has something to do with the number of bytes per
pixel and line.
WinPcx is abit of a memory hog. A full size EGA .PCX file will take an easy
64k chuck of memory. When the .PCX file is larger than the screen, the
display is altered to make it fit. This step also take a large chuck of memory
but frees it shortly after. This function of shrinking the .PCX file was added
basicly for reading EGA files under CGA mode.
If you fix any of the bugs or make some interesting changes (like getting VGA
files to work), I would appericate a copy of the code. Please feel free to
copy and distribute this program and code to others.
The following files are includes in this .ZIP file:
WinPcx - Make File
WinPcx.c - Source Code
WinPcx.def - Definition File
WinPcx.rc - Code For Make The Menus And Dialog Boxes
WinPcx.var - Global Varables
WinPcx.h - Defines
WinPcx.pro - Prototypes
WinPcx.inc - Include Files For Program
WinPcx.doc - This File
WinPcx.res - Compiles Menus And Dialog Boxes
WinPcx.exe - The Compiled Windows Program